using System.Configuration;
using System.Xml;

namespace CLFramework.Configuration
{
    public class CLConfiguration
    {
        XmlNode root;
        public static CLConfiguration GetConfig()
        {
            return (CLConfiguration)ConfigurationManager.GetSection("CL");
        }

        public void LoadValuesFromConfigurationXml(XmlNode node)
        {
            root = node;
        }

        public XmlNode GetSection(string nodePath)
        {
            return root.SelectSingleNode(nodePath);
        }
    }
}
